package com.longge;

import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @program: my-code
 * @description:
 * @author: longge
 * @create: 2021-05-23 01:08
 */
public class ArrayStringsAreEqual {
    public boolean arrayStringsAreEqual(String[] word1, String[] word2) {

        return Stream.of(word1).collect(Collectors.joining()).equals(Stream.of(word2).collect(Collectors.joining()));

    }
}
